<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Bootstrap Admin</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="/static/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/lib/font-awesome/css/font-awesome.css">

    <script src="/static/lib/jquery-1.11.1.min.js" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="/static/stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="/static/stylesheets/premium.css">
    <style type="text/css">
        #line-chart {
            height: 300px;
            width: 800px;
            margin: 0px auto;
            margin-top: 1em;
        }

        .navbar-default .navbar-brand,
        .navbar-default .navbar-brand:hover {
            color: #fff;
        }

        .bg {
            background: url(/static/images/backg.jpg) no-repeat center fixed;
            background-size: 100%;
        }
    </style>
</head>

<body class=" theme-blue bg">


<div class="navbar navbar-default" role="navigation" style="height: 80px;">
    <div class="navbar-header">
        <a class=""><span class="navbar-brand" style="font-size: 20px;font-weight:bold;"><img
                src="/static/images/schoolBadge.png"
                style="height: 55px;width: 55px" alt=""/> 干部信息录入系统</span></a>
    </div>
</div>

<div class="modal-dialog">
    <div class="panel panel-default">
        <p class="panel-heading no-collapse " style="font-size: large">管理员注册</p>
        <div class="panel-body">
            <form action="/admin_register/" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label>姓名</label>
                    <input type="text" class="form-control" name="user_name">
                </div>
                <div class="form-group">
                    <label>性别</label>
                    <input type="text" class="form-control" name="user_sex">
                </div>
                <div class="form-group">
                    <label>出生年月</label>
                    <input type="text" class="form-control" name="user_birth">
                </div>
                <div class="form-group">
                    <label>身份证号码</label>
                    <input type="text" class="form-control" name="card_id">
                </div>

                <div class="form-group">
                    <label>联系方式</label>
                    <input type="text" class="form-control" name="user_phone">
                </div>

                <div class="form-group">
                    <label>邮箱地址</label>
                    <input type="text" class="form-control" name="user_email">
                </div>
                <div class="form-group">
                    <label>籍贯</label>
                    <input type="text" class="form-control" name="user_birthplace">
                </div>
                <div class="form-group">
                    <label>所在单位</label>
                    <input type="text" class="form-control" name="user_unit">
                </div>
                <div class="form-group">
                    <label>密码</label>
                    <input type="password" class="form-control" name="user_pwd">
                </div>
                <div class="form-group">
                    <label>证件照片</label>
                    <input type="file" class="form-control" name="user_photo">
                </div>
                <div class="form-group">
                    <div style="color:red">{{ error_msg }}</div>
                    <button type="submit" class="btn btn-primary pull-right" style="width: 100px;">注册</button>
                    <a href="/admin_login/" class="a bottom-right" style="font-size: large;top: 50px;">已注册？请前往登录</a>
                </div>
            </form>
        </div>
    </div>
</div>
</body>

</html>